/*
* @Author: xfy
* @Date:   2017-08-30 10:51:22
* @Last Modified by:   xfy
* @Last Modified time: 2017-09-02 11:17:15
*/
'use strict';
var _supper = require('util/supper.js');
var _product = {
    //获取商品列表
    getProductList : function(listParam, resolve, reject){
        _supper.request({
            url     : _supper.getServerUrl('/product!list'),
            data    : listParam,
            success : resolve,
            error   : reject
        });
    },
    //获取商品详细信息
    getProductDetail : function(productId, resolve, reject){
        _supper.request({
            url     : _supper.getServerUrl('/product!detail'),
            data    : {
                id : productId
            },
            success : resolve,
            error   : reject
        });
    }
}
module.exports = _product;